﻿<UserControl
	x:Class="WindowsFormsToWPFInterop.UserControl1"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	mc:Ignorable="d" 
	d:DesignWidth="300"
	d:DesignHeight="300"
>
	<UserControl.Resources>
		<Style TargetType="{x:Type TextBlock}">
			<Setter Property="Foreground" Value="DarkGreen"/>
		</Style>
		<Style x:Key="darkBlueForegroundStyle" TargetType="{x:Type TextBlock}">
			<Setter Property="Foreground" Value="DarkBlue"/>
		</Style>
	</UserControl.Resources>
	<Grid>
		<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
			<TextBlock Text="Windows Forms" Style="{DynamicResource darkBlueForegroundStyle}" FontSize="24" HorizontalAlignment="Center"/>
			<TextBlock Text="To" Style="{x:Null}" FontSize="24" HorizontalAlignment="Center"/>
			<TextBlock Text="WPF" FontSize="24" HorizontalAlignment="Center"/>
			<TextBlock Text="Interop" FontSize="24" HorizontalAlignment="Center"/>
			<Button Width="100" Height="40" Margin="10"  Content="Click Me"/>
		</StackPanel>
	</Grid>
</UserControl>
